package org.fuyd.model;

import java.util.Set;

/**
 * 教师类
 * 
 * @author 永德
 *
 */
public class Teacher {
  /** 业务无关主键 **/
  private int id;
  /** 教师姓名 **/
  private String name;
  /** 所教的学生 **/
  private Set<Student> students;

  public int getId() {
    return id;
  }

  public String getName() {
    return name;
  }

  public Set<Student> getStudents() {
    return students;
  }

  public void setId(int id) {
    this.id = id;
  }

  public void setName(String name) {
    this.name = name;
  }

  public void setStudents(Set<Student> students) {
    this.students = students;
  }

  @Override
  public String toString() {
    return "teacher:" + name;
  }
}
